Perhaps I should emphasise that by using Object as the parameter and return type you should be able to use just any reference type as well primitives, arrays, custom types, Views etc. Basic4android will generally convert primitive values to other primitive values but reference types need the return assigned to a compatible type.