Yes it's possible to via reflection, but the better way would probably be to create an interface and have each tile hold an object which implements that interface.